package com.smmisia.shop;

import cn.dev33.satoken.SaManager;
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@Slf4j
@MapperScan("com.smmisia.shop.mapper")
@EnableCreateCacheAnnotation
@EnableMethodCache(basePackages = "com.smmisia.shop")
@EnableFeignClients
public class shopApplication {
    public static void main(String[] args) {
        SpringApplication.run(shopApplication.class, args);
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
        SaManager.getSaTokenDao().set("name", "value", 100000);
    }
}